﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace BlogApi.Models
{
    /// <summary>
    /// 文章与文章TAG的多对多关系表
    /// </summary>
    public class ArticleToArticleTag:BaseEntity
    {
        /// <summary>
        /// 文章ID
        /// </summary>
        [ForeignKey(nameof(Article))]
        public Guid ArticleId { get; set; }
        public Article Article { get; set; }
        /// <summary>
        /// 文章TAG的ID
        /// </summary>
        [ForeignKey(nameof(ArticleTag))]
        public Guid ArticleTagId { get; set; }
        public ArticleTag ArticleTag { get; set; }
    }
}
